﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class Department
    {
        public int DepartmentId { get; set; }
        [Required(ErrorMessage = "Please enter value")]

        [Display(Name = "Name RO")]
        public string NameRomanian { get; set; }

        [Required(ErrorMessage = "Please enter value")]
        [Display(Name = "Name RU")]
        public string NameRussian { get; set; }

        [Required(ErrorMessage = "Please enter value")]
        [Display(Name = "Other name")]
        public string NameOther { get; set; }

        [Required(ErrorMessage = "Please enter year founder")]
        [Display(Name = "Year Founded")]
        public DateTime YearFounded { get; set; }

        [Required(ErrorMessage = "Please select Senior Professor")]
        [Display(Name = "Senior Professor")]
        public Professor SeniorProfessor { get; set; }

        [Required(ErrorMessage = "Please enter descripton")]
        [Display(Name = "Year Founded")]
        public string Description { get; set; }
  
        public virtual Faculty Faculty { get; set; }

        public virtual ICollection<Domain> Domains { get; set; }
        public virtual ICollection<Document> Documents { get; set; }


    }
}